OverlayDomain

class OverlayDomain : Domain

This domain provides various functionality related to drawing atop the inspected page.

This API is marked as experimental in protocol definition and can change in the future.

Functions

description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
Disables domain notifications.
enable
Link copied to clipboard
fun enable(): Single<RequestResponseFrame>
Enables domain notifications.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
getGridHighlightObjectsForTest
Link copied to clipboard
For Persistent Grid testing.
getHighlightObjectForTest
Link copied to clipboard
For testing.
getSourceOrderHighlightObjectForTest
Link copied to clipboard
For Source Order Viewer testing.
hideHighlight
Link copied to clipboard
fun hideHighlight(): Single<RequestResponseFrame>
Hides any highlight.
highlightFrame
Link copied to clipboard
fun highlightFrame(input: HighlightFrameRequest): Single<RequestResponseFrame>
Highlights owner element of the frame with given id.
highlightNode
Link copied to clipboard
fun highlightNode(input: HighlightNodeRequest): Single<RequestResponseFrame>
Highlights DOM node with given id or with the given JavaScript object wrapper.
highlightQuad
Link copied to clipboard
fun highlightQuad(input: HighlightQuadRequest): Single<RequestResponseFrame>
Highlights given quad.
highlightRect
Link copied to clipboard
fun highlightRect(input: HighlightRectRequest): Single<RequestResponseFrame>
Highlights given rectangle.
highlightSourceOrder
Link copied to clipboard
fun highlightSourceOrder(input: HighlightSourceOrderRequest): Single<RequestResponseFrame>
Highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper.
inspectModeCanceled
Link copied to clipboard
fun inspectModeCanceled(): Flowable<RawEvent>
Fired when user cancels the inspect mode.
inspectNodeRequested
Link copied to clipboard
fun inspectNodeRequested(): Flowable<InspectNodeRequestedEvent>
Fired when the node should be inspected.
name
Link copied to clipboard
fun name(): String
Returns domain name.
nodeHighlightRequested
Link copied to clipboard
fun nodeHighlightRequested(): Flowable<NodeHighlightRequestedEvent>
Fired when the node should be highlighted.
screenshotRequested
Link copied to clipboard
fun screenshotRequested(): Flowable<ScreenshotRequestedEvent>
Fired when user asks to capture screenshot of some area on the page.
setInspectMode
Link copied to clipboard
fun setInspectMode(input: SetInspectModeRequest): Single<RequestResponseFrame>
Enters the 'inspect' mode.
setPausedInDebuggerMessage
Link copied to clipboard
setShowAdHighlights
Link copied to clipboard
fun setShowAdHighlights(input: SetShowAdHighlightsRequest): Single<RequestResponseFrame>
Highlights owner element of all frames detected to be ads.
setShowDebugBorders
Link copied to clipboard
fun setShowDebugBorders(input: SetShowDebugBordersRequest): Single<RequestResponseFrame>
Requests that backend shows debug borders on layers
setShowFlexOverlays
Link copied to clipboard
fun setShowFlexOverlays(input: SetShowFlexOverlaysRequest): Single<RequestResponseFrame>
setShowFPSCounter
Link copied to clipboard
fun setShowFPSCounter(input: SetShowFPSCounterRequest): Single<RequestResponseFrame>
Requests that backend shows the FPS counter
setShowGridOverlays
Link copied to clipboard
fun setShowGridOverlays(input: SetShowGridOverlaysRequest): Single<RequestResponseFrame>
Highlight multiple elements with the CSS Grid overlay.
setShowHinge
Link copied to clipboard
fun setShowHinge(input: SetShowHingeRequest): Single<RequestResponseFrame>
Add a dual screen device hinge
setShowHitTestBorders
Link copied to clipboard
fun setShowHitTestBorders(input: SetShowHitTestBordersRequest): Single<RequestResponseFrame>
Requests that backend shows hit-test borders on layers
setShowLayoutShiftRegions
Link copied to clipboard
Requests that backend shows layout shift regions
setShowPaintRects
Link copied to clipboard
fun setShowPaintRects(input: SetShowPaintRectsRequest): Single<RequestResponseFrame>
Requests that backend shows paint rectangles
setShowScrollBottleneckRects
Link copied to clipboard
Requests that backend shows scroll bottleneck rects
setShowViewportSizeOnResize
Link copied to clipboard
Paints viewport size upon main frame resize.
setShowWebVitals
Link copied to clipboard
fun setShowWebVitals(input: SetShowWebVitalsRequest): Single<RequestResponseFrame>
Request that backend shows an overlay with web vital metrics.

Sources

jvm source
Link copied to clipboard